/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.service;

import java.util.List;
import java.util.Map;

import com.sigmatrix.h5.dto.OutStorageDetailData;
import com.sigmatrix.h5.exception.ServiceException;
import com.sigmatrix.h5.service.common.BaseService;
import com.sigmatrix.h5.web.vo.OutStorageDetailVo;

/**
 *@ClassName: OutStorageDetailService
 *@Description: 出库单详情业务层接口
 *@author youjun
 *@date 2017-06-24 17:35:21
 */
public interface OutStorageDetailService extends BaseService<OutStorageDetailData> {


	/**
	 *@Title: findById
	 *@Description: 根据主键查找出库单详情
	 *@return OutStorageDetailData
	 *@author youjun
	 *@date 2017-06-24 17:35:21
	 *@param id
	 *@return
	 * @throws ServiceException 
	 */
	OutStorageDetailData findById(final Integer id, final String enterpriseCode) throws ServiceException;

	/**
	 *@Title: saveOrUpdate
	 *@Description: 保存或更新出库单详情
	 *@return int
	 *@author youjun
	 *@date 2017-06-24 17:35:21
	 *@param outStorageDetailVo
	 * @param map 
	 *@return
	 */
	int saveOrUpdate(OutStorageDetailVo outStorageDetailVo, Map<String, Object> map) throws ServiceException;

	/**
	 *@Title: findListByCondition
	 *@Description: 根据条件查询出库单详情列表
	 *@return List<OutStorageDetailData>
	 *@author youjun
	 *@date 2017-06-24 17:35:21
	 *@param outStorageDetailVo
	 *@return
	 *@throws ServiceException
	 */
	List<OutStorageDetailData> findListByCondition(OutStorageDetailVo outStorageDetailVo) throws ServiceException;

	/**
	 *@Title: findPartColumnListByCondition
	 *@Description: 根据条件查询出库单详情部分字段列表
	 *@return List<OutStorageDetailData>
	 *@author youjun
	 *@date 2017年6月26日 下午3:06:32
	 *@param outStorageDetailVo
	 *@return
	 *@throws ServiceException
	 */
	List<OutStorageDetailData> findPartColumnListByCondition(OutStorageDetailVo outStorageDetailVo)
			throws ServiceException;

}
